import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
class ContextRoutePage extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:AppBar(title:Text("ContextRoutePage")),
      body:Container(
        child: Builder(builder: (context){
          Scaffold scaffold = context.ancestorWidgetOfExactType(Scaffold);
          return (scaffold.appBar as AppBar).title;
        }),
      )) ;
  }
}